Class IPCErrorLTV

java.lang.Object
com.cisco.pt.impl.LTVImpl
com.cisco.pt.impl.IPCErrorLTV
All Implemented Interfaces:
LTV

public class IPCErrorLTV extends LTVImpl
Encapsulates IPC response PTMP message
Author:
packettracerexapps@external.cisco.com
  • Field Details

    • messageId

      protected int messageId
    • errorSource

      protected String errorSource
    • errorMessage

      protected String errorMessage
  • Constructor Details

    • IPCErrorLTV

      public IPCErrorLTV(int messageId, String errorSource, String errorMessage)
      Parameters:
      messageId - it
      errorSource - String
      errorMessage - String
  • Method Details

    • encodeTypeAndPayload

      public void encodeTypeAndPayload(EncodedBuffer buff)
      Specified by:
      encodeTypeAndPayload in interface LTV
      Overrides:
      encodeTypeAndPayload in class LTVImpl
      Parameters:
      buff - The EncodedBuffer that this object should encode itself into
    • getMessageId

      public int getMessageId()
      Specified by:
      getMessageId in interface LTV
      Overrides:
      getMessageId in class LTVImpl
      Returns:
      message id, used to match this message with its response from Packet Tracer its value is arbitrary unless (hasResponse() == true OR isResponse() == true)
    • getErrorMessage

      public String getErrorMessage()
      Returns:
      String
    • getErrorSource

      public String getErrorSource()